import request from '@/utils/request'
import qs from 'qs'
//查询业务组织类型下拉
export const gettypeselectapi = params => request.get('core/dictionary/combo-item/list', { params })
// 查询顶层业务组织机构列表
export const getdingtypeapi = params => request.get('core/security/biz-organization/manager/list', { params })
// 查询下级业务组织机构
export const getxiajitypeapi = params => request.get('core/security/biz-organization/child/list', { params })
// 查询行政组织机构类型下拉框选项（所有）
export const getzuzhitypearrapi = params => request.get('core/dictionary/combo-item/list', { params })
// 查询单位分页列表
export const getdanweifenyelistapi = params => request.get('core/security/organization/org/page', { params })
// 创建业务组织管理公司
export const postaddzuzhigongsiapi = data => request.post('core/security/biz-organization/manager', qs.stringify(data))
// 创建业务组织机构
export const postaddzuzhijigouapi = data => request.post('core/security/biz-organization', qs.stringify(data))
// 查询新增业务组织机构类型下拉框选项
export const getnewzuzhitypeapi = params => request.get('core/dictionary/attribute/combo-item/list', { params })
// 删除业务组织机构
export const delzhuzhijigouapi=data=>request.post('core/security/biz-organization/delete', qs.stringify(data))